CPP  = g++
CC   = gcc

RES  = 
OBJ  = obj/Arcade.o $(RES)
LINKOBJ  = obj/Arcade.o $(RES)
LIBS =  -lglut
INCS =  -I"../../source"
CXXINCS =  -I"../../source"
BIN  = ../../lib/linux32/libhardware.a
CXXFLAGS = $(CXXINCS)   -w -fexceptions
CFLAGS = $(INCS)   -w -fexceptions
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../lib/linux32/libhardware.a all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
	ar r $(BIN) $(LINKOBJ)
	ranlib $(BIN)

obj/Arcade.o: ../../source/Arcade.cpp
	$(CPP) -c ../../source/Arcade.cpp -o obj/Arcade.o $(CXXFLAGS)
